{include file="public/header" /}
<style type="text/css">
	.aui-media-list .aui-list-item{background-color: #FFF;padding: 0 0.75rem;}
	.aui-list-item-media i{font-size: 25px;}
	.aui-list-item-right{text-align: center;}
	 .aui-list .aui-list-item-inner{line-height: 2.25rem;color: #434343;font-weight: bold;}
	.aui-list .aui-list-item:after{height: 1px !important;}
</style>
<div class="aui-content wrap">
	{neq name="_user_id" value="0"}
	<div class="my-header">
	    <div class="my-info">
			<div class="com_top">
				<h2><!-- <a href="{:url('UserCenter/setting')}">设置</a> --></h2>
				<p class="tuij_cas" style="height: 35px;">
				</p>
				<dl>
					<dt>
						<img src="{:img($info['head_url'],160,160)}" />
					</dt>
				</dl>
			</div>
			<div class="uer_topnav">
				<div class="user-info" style="display: inline-block;margin-top: 10px;margin-left: 10px;">
					<p style="text-align: center;color: #434343;font-size: 15px;">{$user['show_name']}</p>
					<p style="text-align: center;color: #434343;font-size: 12px;">{:model('Area')->getNames($user['province_id']);} | {:model('Area')->getNames($user['city_id']);}</p>
				</div>
				<ul>
					<!-- <li><a style="color: #abaaab;border-right: 1px solid #e0dcdc;"><span style="color: #434343;">{$info['data']['beans'] ? $info['data']['beans'] : 0}</span>我的豆子</a></li> -->
					<!-- <li><a style="color: #abaaab;"><span style="color: #434343;">{$info['data']['experience'] ? $info['data']['experience'] : 0}</span>我的经验</a></li> -->
				</ul>
			</div>
	    </div>
    </div>
    {else/}
    <div class="header" style="position: relative;">
    	<img src="{:img('../public/images/user_center_bg.png', 640, 300)}" width="100%">
    	<a class="aui-btn kmj-btn" href="{:url('Login/index')}" style="width: 100px;position: absolute;top: 50%;left: 50%;transform: translate(-50px,-15px);-webkit-transform: translate(-50px,-15px);">登录</a>
    </div>
	{/neq}
		
    <div class="aui-content">
    	<div class="aui-list aui-media-list">
	        <a class="aui-list-item aui-list-item-middle" href="{:url('UserCenter/my_collection', array('title' => '我的问题', 'model' => 'WapAsk'))}">
	            <div class="aui-media-list-item-inner">
	                <div class="aui-list-item-inner">
	                    我的提问
	                </div>
	                <div class="aui-list-item-right" style="text-align: right;font-size:0.8rem !important">
	                	{$ask_count}
	                </div>
	            </div>
	        </a>
	    	<a class="aui-list-item aui-list-item-middle" href="{:url('UserCenter/my_collection', array('title' => '我的回答', 'model' => 'WapAskAnswer'))}">
	            <div class="aui-media-list-item-inner">
	                <div class="aui-list-item-inner">
	                    我的回答
	                </div>
	                <div class="aui-list-item-right"  style="text-align: right;font-size:0.8rem !important">
	                	{$answer_count}
	                </div>
	            </div>
	        </a>
	        <a class="aui-list-item aui-list-item-middle aui-list-item-arrow" href="{:url('UserCenter/my_collection', array('title' => '我的收藏', 'model' => 'WapUserFav'))}">
	            <div class="aui-media-list-item-inner">
	                <div class="aui-list-item-inner">
	                    我的收藏
	                </div>
	                <div class="aui-list-item-right">
	                	{$fav_count}
	                </div>
	            </div>
	        </a>
	        <!-- <a class="aui-list-item aui-list-item-middle" href="{:url('Help/index')}">
	            <div class="aui-media-list-item-inner aui-list-item-arrow">
	                <div class="aui-list-item-media" style="width: 2rem;font-size: 16px;">
	                    <i class="aui-img-round aui-list-img-sm icon-help"></i>
	                </div>
	                <div class="aui-list-item-inner">
	                    使用帮助
	                </div>
	            </div>
	        </a> -->
    	</div>
    </div>

    <div class="aui-content" style="margin-top: 20px;">
    	<div class="aui-list aui-media-list">
			<a class="aui-list-item aui-list-item-middle aui-list-item-arrow" href="{:url('Help/help')}">
	            <div class="aui-media-list-item-inner">
	                <div class="aui-list-item-inner">
	                    使用帮助
	                </div>
	            </div>
	        </a>
    	</div>
    </div>

    <div class="aui-content" style="margin-top: 20px;">
    	<div class="aui-list aui-media-list">
			<a class="aui-list-item aui-list-item-middle aui-list-item-arrow" href="{:url('UserCenter/setting')}">
	            <div class="aui-media-list-item-inner">
	                <div class="aui-list-item-inner">
	                    设置
	                </div>
	            </div>
	        </a>
    	</div>
    </div>

</div>

{include file="public/footer" /}